# 592. 门牌制作
# https://www.lanqiao.cn/problems/592/learning/?page=1&first_category_id=1&second_category_id=3
# Date: 2025/2/15
from datetime import *


def running_miles():
    start_date = date(2000, 1, 1)
    end_date = date(2020, 10, 1)
    miles = 0
    while start_date <= end_date:
        if start_date.weekday() == 0 or start_date.day == 1:  # 周一: date.weekday() == 0
            miles += 2
        else:
            miles += 1
        start_date += timedelta(days=1)
    return miles


if __name__ == '__main__':
    print(running_miles())
